package com.heima.common.constants;

/**
 * @author Xiao
 * @version 1.0
 * @description 自媒体常量
 * @date 2021/11/22
 */
public class WemediaConstants {

    public static final Short DEFAULT_PAGE_SIZE = 10;   //默认每页数据数量

    //自媒体素材 --> 收藏/取消收藏
    public static final Integer COLLECT_MATERIAL = 1;//收藏
    public static final Integer CANCEL_COLLECT_MATERIAL = 0;//取消收藏

    //自媒体文章 --> 内容键值名称
    public static final String WM_NEWS_TYPE_IMAGE = "image";
    public static final String WM_NEWS_TYPE_TEXT = "text";
    public static final String WM_NEWS_TYPE = "type";
    public static final String WM_NEWS_VALUE = "value";

    //自媒体文章发布 --> 封面设置
    public static final Integer WM_NEWS_NONE_IMAGE = 0;   //封面0图
    public static final Integer WM_NEWS_SINGLE_IMAGE = 1; //封面1图
    public static final Integer WM_NEWS_MANY_IMAGE = 3;   //封面3图
    public static final Integer WM_NEWS_TYPE_AUTO = -1;   //封面自动
    public static final String WM_NEWS_IMAGES_NONE = "";   //封面0图设置images字段为空字符串

    //自媒体文章发布 --> 文章素材引用类型
    public static final Integer WM_CONTENT_REFERENCE = 0; //内容图片引用
    public static final Integer WM_COVER_REFERENCE = 1;   //封面图片引用

    //自媒体文章发布 --> 审核状态
    public static final Integer WM_NEWS_STATUS_NORMAL = 0;   //草稿
    public static final Integer WM_NEWS_STATUS_SCAN_WAITING = 1;   //提交(待审核)
    public static final Integer WM_NEWS_STATUS_SCAN_FAIL = 2;   //审核失败
    public static final Integer WM_NEWS_STATUS_SCAN_PERSON = 3;   //人工审核
    public static final Integer WM_NEWS_STATUS_SCAN_PERSON_PASS = 4;   //人工审核通过
    public static final Integer WM_NEWS_STATUS_SCAN_PASS = 8;   //审核通过(待发布)
    public static final Integer WM_NEWS_STATUS_SCAN_PUBLISH = 9;   //已发布

    //自媒体文章发布 --> 拒绝/通过原因描述
    public static final String WM_NEWS_REASON_PASS = "审核通过";
    public static final String WM_NEWS_REASON_ILLEGAL_IMAGE = "图片违规";
    public static final String WM_NEWS_REASON_ILLEGAL_TEXT = "文案违规";
    public static final String WM_NEWS_REASON_UNSURE_IMAGE = "图片内容不确定";
    public static final String WM_NEWS_REASON_UNSURE_TEXT = "文案内容不确定";
    public static final String WM_NEWS_REASON_ILLEGAL_TESS4J = "文案/图片中有违规文字：";

    //自媒体文章上架/下架
    public static final Integer WM_NEWS_ENABLE_TRUE = 1;  //上架
    public static final Integer WM_NEWS_ENABLE_FALSE = 0;  //上架

    //自媒体上架、下架、删除 --> 操作类型
    public static final Integer WM_NEWS_UP = 0;  //上架
    public static final Integer WM_NEWS_DOWN = 1;    //下架
    public static final Integer WM_NEWS_DELETE = 1; //删除
}
